<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%@ include file="../../../commons/taglibs.jsp"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>列表</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<script type="text/javascript">
$(function(){
	//初始化操作默认不显示人员关联项
	loadUnCheckComBox("feeType","<%=path %>/jsp/feeIncome/feeType.json")
	 $("[name = 'feeIncome.type']:radio").click(function(){
		 if($("input[type='radio']:checked").val()=='1'){
			 $("#orderTr").show();
		 }else{
			 $("#orderTr").hide();
		 }
		 
	 })
	 
	 $('#orderId').combogrid({  
			panelWidth:450,
			idField:'id',
			textField:'order_name',
		   rownumbers:true,//行号
            singleSelect:true,//是否单选
        	pagination:true,
			url:'<%=path %>/busOrder/listForSelect', 
			width:224,
			columns:[[
					{field:'order_name',title:'订单名称',width:120,align:'center'},
					{field:'sign_date',title:'签署时间',width:130,align:'center'},
					{field:'owner',title:'业务人',width:120,align:'center'},
					{field:'pay_type',title:'支付类型',width:120,align:'center',formatter:function(value,row,index){
						if(row.pay_type=="1"){
							return "一次性付款";
						}else if(row.pay_type=="2"){
							return "挂账";
						}else if(row.pay_type=="3"){
							return "业务人代收";
						}else{
							return "司机代收";
						}
					}}
						]]
		});   
})

</script>
</head>
<body>
	<div id="tab_bd1">
		<div class="title">
			<div class="left">收费信息</div>
		</div>
		<div class="frame">
		<form id="saveForm" name="saveForm" method="post"  >
			<table width="100%" border="0" cellpadding="1" cellspacing="1"
				bordercolor="#CCCCCC" bgcolor="#CCCCCC" align="center">
				<input type="hidden" name="feeIncome.id" value="${feeIncome.id }" />
				<tr>
					<td width="15%" class="lbg"></td>
					<td width="35%">
						<input type="radio" name="feeIncome.type" value="0" >普通收费
						<input type="radio" name="feeIncome.type" value="1">订单收费
					</td>
				</tr>
				<tr id="orderTr">
					<td width="15%" class="lbg">订单名称：</td>
					<td width="35%">
					<input type="text" class="easyui-validatebox"
						id="orderId" name="feeIncome.orderId"
						value="${feeIncome.orderId}"><font color="red" size="4">&nbsp;&nbsp;*&nbsp;</font>
					</td>
				</tr>
				<tr>
					<td width="15%" class="lbg">收费类型：</td>
					<td width="35%"><input type="text" class="easyui-validatebox"
						 id="feeType" name="feeIncome.feeType"
						value="${feeIncome.feeType}"><font color="red" size="4">&nbsp;&nbsp;*&nbsp;</font>
					</td>
				</tr>
				<tr>
					<td width="15%" class="lbg">收费金额：</td>
					<td width="35%"><input type="text" class="easyui-validatebox"
						 id="siteNum" name="feeIncome.feeSum"
						value="${feeIncome.feeSum}"></td>
				</tr>
				<tr>
					<td width="15%" class="lbg">收费说明：</td>
					<td width="35%">
					<textarea name="feeIncome.feeMemo" id="fee_memo" rows="4" style="width:375px;">${feeIncome.feeMemo}</textarea>
					</td>
				</tr>
				<tr>
					<td colspan="4" align="center">
					<a href="javascript:saveModel('<%=path %>/feeIncome/createOrUpdate')" class="easyui-linkbutton pad" iconCls="icon-ok"/>保存</a>
						<a href="javascript:history.go(-1)" class="easyui-linkbutton pad" iconCls="icon-cancel">返回</a></td>
				</tr>
			</table>
			</form>
		</div>
	</div>
</body>
</html>